﻿/*
 * Summary:
 *   This class is used for managing specific item 
 *   that is presented in enhanced sports item files
 *   This class is derived from SportsItem, because
 *   it contains all that SportsItem has
 *   
 * History:
 *   Date           Author          Changes
 *   01/11/2010     YIWEI YU        Created for dealing with sports item
 *                                  file containing style field
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcmeSportsStore
{
    class SportsItemG : SportsItem
    {
        public enum Gender
        {
            None,
            Male,
            Female
        }

        protected Gender mUserGender;

        public Gender UserGender
        {
            get
            {
                return mUserGender;
            }
        }

        public SportsItemG(string id, string name, string desc,
            int price, Gender gender)
            : base(id, name, desc, price)
        {
            mUserGender = gender;
        }

        public override string ToString()
        {
            return mId + "; " + mName + "; " + mUserGender + "; " 
                + mDescription + "; " + PriceString;
        }
    }
}
